package my.service.impl;

import my.dao.ItemsDao;
import my.domain.Items;
import my.service.ItemsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ItemsServiceImpl implements ItemsService {

    @Autowired
    private ItemsDao dao;

    public List<Items> findAll() {
        List<Items> list = dao.findAll();
            return list;
    }

    public Items findById(int id) {
        Items items = dao.findById(id);
        return items;
    }
}
